package com.smooth.site.sx.pc.base.rsp;

import java.util.ArrayList;
import java.util.List;

import org.apache.commons.beanutils.BeanUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.smooth.dao.gen.bean.BaseCollege;

public class BaseCollegeRsp extends BaseCollege {
	static Logger log = LoggerFactory.getLogger(BaseCollegeRsp.class);
	private String showName;

	public String getShowName() {
		return showName;
	}

	public void setShowName(String showName) {
		this.showName = showName;
	}
	
	public static List<BaseCollegeRsp> getRsp(List<BaseCollege> sbList) {
		
		List<BaseCollegeRsp> rlist = new ArrayList<>();
		for(BaseCollege bseCollege : sbList) {
			BaseCollegeRsp bseCollegeRsp = new BaseCollegeRsp();
			
			try{
				BeanUtils.copyProperties(bseCollegeRsp, bseCollege);
			}catch(Exception e) {
				log.error("",e);
			}
			bseCollegeRsp.setShowName(bseCollege.getCollegeName());
			rlist.add(bseCollegeRsp);
		}
		return rlist;
	}
}
